<%--
  Created by IntelliJ IDEA.
  Author: Deng PengFei
  Date: 2021/8/14
  Time: 10:45
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>管理员界面</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <%--引入LayUI--%>
    <link href="../layui/css/layui.css" rel="stylesheet">
    <script src="../layui/layui.js"></script>
    <script src="../js/jquery-3.1.0.js"></script>

    <style>
        .myMenu {
            padding-left: 30px;
        }
    </style>
</head>
<body>
<div class="layui-layout layui-layout-admin">

    <%--头部导航栏 导入 head.jsp--%>
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">
            <i class="layui-icon layui-icon-app"></i>
            毕设管理系统
        </div>

        <%--页面信息框导航栏 左边--%>
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                <a href="javascript:void (0);">
                    <i class="layui-icon layui-icon-shrink-right" style="font-size: 20px"></i>
                </a>
            </li>
            <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                <a href="javascript:window.location=location;">
                    <i class="layui-icon layui-icon-refresh" style="font-size: 22px"></i>
                </a>
            </li>
        </ul>

        <%--页面信息框导航栏 右边--%>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                <a href="javascript:void (0);">
                    <i class="layui-icon layui-icon-email" style="font-size: 22px"></i>
                    <span class="layui-badge-dot"></span>
                </a>
            </li>
            <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                <a href="javascript:void (0);">
                    <i class="layui-icon layui-icon-notice" style="font-size: 20px"></i>
                    <span class="layui-badge-dot"></span>
                </a>
            </li>
            <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                <a href="javascript:void (0);">
                    <i class="layui-icon layui-icon-username"></i> 教学秘书
                </a>
            </li>
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:;">
                    <img src="../img/admin.png" class="layui-nav-img" alt="">
                    ${sessionScope.userName}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="../personage.jsp?role=3">修改信息</a></dd>
                    <dd><a href="../personage.jsp?role=3">安全管理</a></dd>
                    <dd><a href="${pageContext.request.contextPath}/logout">退出</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                <a href="${pageContext.request.contextPath}/logout">
                    <i class="layui-icon layui-icon-logout"></i>退出
                </a>
            </li>
        </ul>
    </div>

    <!-- 左侧菜单栏 导入 menu.jsp -->
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="admin.jsp">管理员端首页</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">信息管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="write.jsp">系统公告</a></dd>
                        <dd><a href="../email.jsp">个人邮件</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">系统设置</a>
                    <dl class="layui-nav-child">
                        <dd><a href="account.jsp">账号管理</a></dd>
                        <dd><a href="schedule.jsp">进度查询</a></dd>
                        <dd><a href="business.jsp">流程业务时间设置</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">选题管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="teacher-assign.jsp">指导教师-分配列表</a></dd>
                        <dd><a href="title-teacher.jsp">课题申请-教师列表</a></dd>
                        <dd><a href="title-student.jsp">课题申请-学生列表</a></dd>
                        <dd><a href="title-select.jsp">课题信息-查询列表</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">过程管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="assignmentBook.jsp">任务书-查询列表</a></dd>
                        <dd><a href="openingReport.jsp">开题报告-查询列表</a></dd>
                        <dd><a href="middleCheck.jsp">中期检查-查询列表</a></dd>
                        <dd><a href="firstDraft.jsp">论文初稿-查询列表</a></dd>
                        <dd><a href="finalize.jsp">论文定稿-查询列表</a></dd>
                        <dd><a href="finalDraft.jsp">论文终稿-查询列表</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">评分管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="reviewersAssign.jsp">分配评阅人</a></dd>
                        <dd><a href="replygroupAssign.jsp">分配答辩组</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="../personage.jsp?role=3">个人设置</a>
                </li>
            </ul>
        </div>
    </div>

    <!-- 内容主体区域 -->
    <div class="layui-body">
        <iframe frameborder="0" style="width: 100%;height: 100%" src="admin.jsp" id="aa"></iframe>
    </div>
</div>

</body>
<script>
    $(".layui-nav-item a").on('click', function () {
        let address = $(this).attr("href");
        if (address === null || address === "" || address === '/logout') {
            return true;
        } else {
            $("iframe").attr("src", address)
            return false;
        }
    });
</script>

</html>
